import request from '@/utils/request.js'

export const get_comment_list = (params) => {
  return request({
    url: '/note-space/comments',
    method: 'get',
    params,
  })
}

export const get_reply_list = (params) => {
  return request({
    url: '/note-space/replies',
    method: 'get',
    params,
  })
}

export const comment_note = (data) => {
  return request({
    url: '/note-space/comment',
    method: 'post',
    data,
  })
}

export const reply_comment = (data) => {
  return request({
    url: '/note-space/reply',
    method: 'post',
    data,
  })
}

export const delete_comment = (id) => {
  const data = { id }
  return request({
    url: '/note-space/del-comment',
    method: 'post',
    data,
  })
}

